<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>{$name}</h1>
<ul>
    {volist name="list" id="vo"}
    {$vo.id}:{$vo.name}<br/>
    {/volist}
</ul>

<ul>
    <?php if (isset($list)): foreach ($list as $item): ?>
        <li><?= $item['id'] ?>:<?= $item['name'] ?></li>
    <?php endforeach; endif; ?>
</ul>
<p>
    <?php if($name=='web1'): ?>
    true
    <?php else:?>
    false
    <?php endif; ?>
</p>
{eq name="name" value="web"}
相等
{else/}
不相等
{/eq}

{if condition="($name == 'web') OR ($name > 100) "} value1
{elseif condition="$name eq 2"/}value2
{else /} value3
{/if}
<h1><?php echo $name; ?></h1>
</body>
</html>